package com.zsck.zsali.module;

import com.zsck.zsali.base.BaseModel;
import com.zsck.zsali.bean.MineBean;
import com.zsck.zsali.http.ApiSubscriber;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

public class MainModel extends BaseModel {


    public List<MineBean> getList(){
        List<MineBean> userList= new ArrayList<>();
        return userList;
    }

    public void auth (){
        apiSubscriber= new ApiSubscriber<MineBean>(){

            @Override
            public void onFailure(Throwable e, String errorMsg) {

            }

            @Override
            public void onSuccess(MineBean mineBean) {

            }
        };
        Map requestData= new HashMap();
        requestData.put("verificationCode","123456");
        requestData.put("phoneNumber","15807990881");
        requestData.put("registrationId","15807990881");
        addSubscription(apiService.getLogin(requestData),apiSubscriber);


    }



}
